package net.htjs.jdkgrammer.jdk13;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class SwitchTest {

    public static void main(String[] args) {
        int month = 3;
        switch(month) {
            case 3, 4, 5 -> log.info("春天");
            case 6, 7, 8 -> log.info("夏天");
            case 9,10,11 -> log.info("秋天");
            case 12,1,2 -> log.info("冬天");
            default -> log.info("其他");
        }

    }
}
